3.80 \(\int \frac {\tanh (x)}{\sqrt {1-\cosh ^2(x)}} \, dx\)

Optimal. Leaf size=13 \[ -\tanh ^{-1}\left (\sqrt {-\sinh ^2(x)}\right ) \]

[Out]

-arctanh((-sinh(x)^2)^(1/2))

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {3176, 3205, 63, 206} \[ -\tanh ^{-1}\left (\sqrt {-\sinh ^2(x)}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Tanh[x]/Sqrt[1 - Cosh[x]^2],x]

[Out]

-ArcTanh[Sqrt[-Sinh[x]^2]]

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 3176

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*cos[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0]

Rule 3205

Int[((b_.)*sin[(e_.) + (f_.)*(x_)]^(n_))^(p_.)*tan[(e_.) + (f_.)*(x_)]^(m_.), x_Symbol] :> With[{ff = FreeFact
ors[Sin[e + f*x]^2, x]}, Dist[ff^((m + 1)/2)/(2*f), Subst[Int[(x^((m - 1)/2)*(b*ff^(n/2)*x^(n/2))^p)/(1 - ff*x
)^((m + 1)/2), x], x, Sin[e + f*x]^2/ff], x]] /; FreeQ[{b, e, f, p}, x] && IntegerQ[(m - 1)/2] && IntegerQ[n/2
]

Rubi steps

\begin {align*} \int \frac {\tanh (x)}{\sqrt {1-\cosh ^2(x)}} \, dx &=\int \frac {\tanh (x)}{\sqrt {-\sinh ^2(x)}} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{\sqrt {-x} (1+x)} \, dx,x,\sinh ^2(x)\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {-\sinh ^2(x)}\right )\\ &=-\tanh ^{-1}\left (\sqrt {-\sinh ^2(x)}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 21, normalized size = 1.62 \[ \frac {2 \sinh (x) \tan ^{-1}\left (\tanh \left (\frac {x}{2}\right )\right )}{\sqrt {-\sinh ^2(x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Tanh[x]/Sqrt[1 - Cosh[x]^2],x]

[Out]

(2*ArcTan[Tanh[x/2]]*Sinh[x])/Sqrt[-Sinh[x]^2]

________________________________________________________________________________________

fricas [A]  time = 0.46, size = 1, normalized size = 0.08 \[ 0 \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)/(1-cosh(x)^2)^(1/2),x, algorithm="fricas")

[Out]

0

________________________________________________________________________________________

giac [C]  time = 0.72, size = 38, normalized size = 2.92 \[ -\frac {\log \left (e^{x} + i\right )}{\mathrm {sgn}\left (-e^{\left (3 \, x\right )} + e^{x}\right )} + \frac {\log \left (e^{x} - i\right )}{\mathrm {sgn}\left (-e^{\left (3 \, x\right )} + e^{x}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)/(1-cosh(x)^2)^(1/2),x, algorithm="giac")

[Out]

-log(e^x + I)/sgn(-e^(3*x) + e^x) + log(e^x - I)/sgn(-e^(3*x) + e^x)

________________________________________________________________________________________

maple [A]  time = 0.17, size = 12, normalized size = 0.92 \[ -\arctanh \left (\frac {1}{\sqrt {-\left (\sinh ^{2}\relax (x )\right )}}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tanh(x)/(1-cosh(x)^2)^(1/2),x)

[Out]

-arctanh(1/(-sinh(x)^2)^(1/2))

________________________________________________________________________________________

maxima [C]  time = 0.43, size = 7, normalized size = 0.54 \[ -2 i \, \arctan \left (e^{\left (-x\right )}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)/(1-cosh(x)^2)^(1/2),x, algorithm="maxima")

[Out]

-2*I*arctan(e^(-x))

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.08 \[ \int \frac {\mathrm {tanh}\relax (x)}{\sqrt {1-{\mathrm {cosh}\relax (x)}^2}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tanh(x)/(1 - cosh(x)^2)^(1/2),x)

[Out]

int(tanh(x)/(1 - cosh(x)^2)^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tanh {\relax (x )}}{\sqrt {- \left (\cosh {\relax (x )} - 1\right ) \left (\cosh {\relax (x )} + 1\right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(tanh(x)/(1-cosh(x)**2)**(1/2),x)

[Out]

Integral(tanh(x)/sqrt(-(cosh(x) - 1)*(cosh(x) + 1)), x)

________________________________________________________________________________________